//引用传递
var b = {
    name:'moyu',
    age:23
}
var a = b;
a.age = 22;
console.log(b.age);
console.log(a.age);

var a = 1;
var b = a;
b++;
console.log(b);
console.log(a);

var arr = ["moyu",12,{name:"moyu",age:12}];
var a = arr[1];
a++;
console.log(arr[1]);

var b = arr[2];
b.age++;
console.log(arr[2].age);
